/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.peopleinformation.peopleassessaccount.service;

import java.util.List;

import com.jeeplus.modules.ticket.crowdleadershipteach.entity.CrowdLeadershipTeach;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.peopleinformation.peopleassessaccount.entity.PeopleAssessAccount;
import com.jeeplus.modules.peopleinformation.peopleassessaccount.mapper.PeopleAssessAccountMapper;

/**
 * 考核账号信息Service
 * @author 刘明星
 * @version 2021-09-03
 */
@Service
@Transactional(readOnly = true)
public class PeopleAssessAccountService extends CrudService<PeopleAssessAccountMapper, PeopleAssessAccount> {

	public PeopleAssessAccount get(String id) {
		return super.get(id);
	}
	
	public List<PeopleAssessAccount> findList(PeopleAssessAccount peopleAssessAccount) {
		return super.findList(peopleAssessAccount);
	}
	
	public Page<PeopleAssessAccount> findPage(Page<PeopleAssessAccount> page, PeopleAssessAccount peopleAssessAccount) {
		return super.findPage(page, peopleAssessAccount);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateFinishState(PeopleAssessAccount peopleAssessAccount){
		mapper.updateFinishState(peopleAssessAccount);
	}
	@Transactional(readOnly = false)
	public void save(PeopleAssessAccount peopleAssessAccount) {
		super.save(peopleAssessAccount);
	}
	
	@Transactional(readOnly = false)
	public void delete(PeopleAssessAccount peopleAssessAccount) {
		super.delete(peopleAssessAccount);
	}

	@Transactional(readOnly = false)
	public void deleteLoginName(PeopleAssessAccount peopleAssessAccount) {
		mapper.deleteLoginName(peopleAssessAccount);
	}
	
}